package com.nidu.demo.notify.convertor;

import com.nidu.demo.base.BaseConvertor;
import com.nidu.demo.convertor.MapStructConfig;
import com.nidu.demo.notify.dto.NotifyMessageCO;
import com.nidu.demo.notify.mapper.dataobject.NotifyMessageDO;
import com.nidu.demo.notify.model.NotifyMessage;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(config = MapStructConfig.class)
public interface NotifyMessageConvertor extends BaseConvertor<NotifyMessageDO, NotifyMessage, NotifyMessageCO> {
    
    @Override
    @Mapping(target = "createTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "createBy", ignore = true)
    @Mapping(target = "updateBy", ignore = true)
    NotifyMessageDO toDataObject(NotifyMessage notifyMessage);

}
